Bug: T149346
Change-Id: I2735750803dc1b2e36be3989caaabbf3232b2923
if ( $title instanceof Title ) {
$text = $wgContLang->convert( $title->getPrefixedText() );
- return Linker::link( $title, htmlspecialchars( $text ) );
+ return $this->getLinkRenderer()->makeLink( $title, $text );
} else {
return Html::element( 'span', [ 'class' => 'mw-invalidtitle' ],
Linker::getInvalidTitleDescription( $this->getContext(), $row->namespace, $row->title ) );
*/
private function makeWlhLink( $title, $result ) {
$wlh = SpecialPage::getTitleFor( 'Whatlinkshere', $title->getPrefixedText() );
- $label = $this->msg( 'nlinks' )->numParams( $result->value )->escaped();
- return Linker::link( $wlh, $label );
+ $label = $this->msg( 'nlinks' )->numParams( $result->value )->text();
+ return $this->getLinkRenderer()->makeLink( $wlh, $label );
}
/**